<template>
  <div id="iLoading">
    <div class="background"></div>
    <div class="label">
      <div class="icon"><i class="el-icon-loading"></i></div>
      <div class="text">数据加载中</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'iLoading'
}
</script>

<style lang="scss" scoped>
#iLoading {
  animation: fadeIn 1s ease-in-out;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  z-index: 9999;
  backdrop-filter: blur(5px);

  .background{
    position: absolute;
    width: 100%;
    height: 100%;
  }

  .label {
    position: inherit;
    width: 100%;
    top: 65%;

    .icon {
      width: 100%;
      padding-bottom: 10px;
      display: flex;
      justify-content: center;

      i {
        font-size: 28px;
        color: #006886;
      }
    }

    .text{
      width: 100%;
      line-height: 36px;
      font-size: 20px;
      text-align: center;
      color: #006886;
      font-weight: bold;
    }
  }
}

@keyframes fadeIn {
  from{
    backdrop-filter: blur(0px);
  }
  to{
    backdrop-filter: blur(5px);
  }
}
</style>
